package cn.com.api.service.impl.base;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiU_article_reply;
import cn.com.api.mapper.ApiU_article_replyMapper;

/**
 * 
 **/
@Service
public class U_article_replyServiceImplBase {
	@Autowired
	private ApiU_article_replyMapper apiU_article_replyMapper;
    
    // 根据id获取
	public ApiU_article_reply findU_article_replyById(Integer id){
		ApiU_article_reply u_article_reply = apiU_article_replyMapper.findU_article_replyById(id);
		return u_article_reply;
	}
	
    
    //查看数据集
	public List<ApiU_article_reply> findU_article_replys(){
        List<ApiU_article_reply> u_article_replys = apiU_article_replyMapper.findU_article_replys();
		return u_article_replys;
    }
   
    //根据条件查看数据集
	public List<Map<String, Object>> findU_article_replysByMap(HashMap condition){
        List<Map<String, Object>> u_article_replys = apiU_article_replyMapper.findU_article_replysByMap(condition);
		return u_article_replys;
    }
    
	// 添加
	public int insertU_article_reply(ApiU_article_reply u_article_reply){
		int ret_I= apiU_article_replyMapper.insertU_article_reply(u_article_reply);
		return ret_I;
	}

	// 修改
	public int updateU_article_reply(ApiU_article_reply u_article_reply){
		int ret_I= apiU_article_replyMapper.updateU_article_reply(u_article_reply);
		return ret_I;
	}
	
    // 删除
	public int deleteU_article_reply(Integer id){
		int ret_I= apiU_article_replyMapper.deleteU_article_reply(id);
		return ret_I;
	}
	
    // Foreign keys revelant		
		

	//region Indexs revelant
    
    
    
    
}


